import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import home from '../view/home.vue'
import product from '../view/product.vue'

const routes = [
  { name: 'home', path: '/home', component: home },
  { name: 'product', path: '/product', component: product },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes,
})

export default router
